package com.suzus.springbootrm.consumer;

import com.suzus.springbootrm.config.ConfirmConfig;
import org.springframework.amqp.core.Message;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class Consumer {
    @RabbitListener(queues = ConfirmConfig.CONFIRM_QUEUE_NAME)
    public void receiveCMsg(Message message){
        System.out.println(new String(message.getBody()));
    }
}
